home *** CD-ROM | disk | FTP | other *** search
/ Halting the Hacker - A P…uide to Computer Security / Halting the Hacker - A Practical Guide to Computer Security.iso / rfc / rfc1838.txt < prev    next >
Text File  |  1997-04-01  |  12KB  |  452 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Network Working Group                                           S. Kille
  8. Request for Comments: 1838                              ISODE Consortium
  9. Category: Experimental                                       August 1995
  10.  
  11.  
  12.       Use of the X.500 Directory to support mapping between X.400
  13.                          and RFC 822 Addresses
  14.  
  15. Status of this Memo
  16.  
  17.    This memo defines an Experimental Protocol for the Internet
  18.    community.  This memo does not specify an Internet standard of any
  19.    kind.  Discussion and suggestions for improvement are requested.
  20.    Distribution of this memo is unlimited.
  21.  
  22. Abstract
  23.  
  24.    This document defines how to use directory to support the mapping
  25.    between X.400 O/R Addresses and mailboxes defined in RFC 1327 [2].
  26.  
  27. 1.  X.400/RFC 822 Mappings
  28.  
  29.    RFC 1327 defines an algorithm for maintaining a global mapping
  30.    between X.400 and RFC 822 addresses directory [2].  RFC 1327 also
  31.    defines a table based mechanism for maintaining this mapping.  There
  32.    is substantial benefit to maintaining this mapping within the
  33.    directory.  In particular, this will lead to an approach for managing
  34.    the mapping which is both distributed and scalable.
  35.  
  36.    Mechanisms for representing O/R Address and Domain hierarchies within
  37.    the DIT are defined in [1, 5].  These techniques are used to define
  38.    two independent subtrees in the DIT, which contain the mapping
  39.    information.  The benefits of this approach are:
  40.  
  41.    1.  The mapping information is kept in a clearly defined area which
  42.        can be widely replicated in an efficient manner.  The tree is
  43.        constrained to hold only information needed to support the
  44.        mapping.  This is important as gateways need good access to the
  45.        entire mapping.
  46.  
  47.    2.  It facilitates migration from the currently deployed table-based
  48.        approach.
  49.  
  50.    3.  It handles the issues of "missing components" in a natural
  51.        manner.
  52.  
  53.  
  54.  
  55.  
  56.  
  57.  
  58. Kille                         Experimental                      [Page 1]
  59.  
  60. RFC 1838             RFC 822/X.400 Mapping by X.500          August 1995
  61.  
  62.  
  63.           An alternative approach which is not taken is to locate the
  64.           information in the routing subtrees.  The benefits of this
  65.           would be:
  66.  
  67.         o  It is the "natural" location, and will also help to
  68.            ensure correct administrative authority for a mapping
  69.            definition.
  70.  
  71.         o  The tree will usually be accessed for routing, and so it
  72.            will be efficient for addresses which are being routed.
  73.  
  74.           This is not done, as the benefits of the approach proposed
  75.           are greater.
  76.  
  77.    There are three mappings, which are represented by two subtrees
  78.    located under:
  79.  
  80.    OU=X.400/RFC 822 Mapping,  O=Internet
  81.  
  82.    These subtree roots are of object class subtree, and use the
  83.    mechanism for representing subtrees defined in [4].
  84.  
  85.    X.400 to RFC 822 This table gives the equivalence mapping from X.400
  86.        to RFC 822.  There is an O/R Address tree under this.  An example
  87.        entry is:
  88.  
  89.        PRMD=UK.AC, ADMD=Gold 400, C=GB, CN=X.400 to RFC 822,
  90.        OU=X.400/RFC 822 Mapping,  O=Internet
  91.  
  92.  
  93.    RFC 822 to X.400 There is a domain tree under this.  This table holds
  94.        the equivalence mapping from RFC 822 to X.400, and the gateway
  95.        mapping defined in RFC 1327.  An example entry is:
  96.  
  97.        DomainComponent=ISODE, DomainComponent=COM,
  98.        CN=RFC 822 to X.400,
  99.        OU=X.400/RFC 822 Mapping,  O=Internet
  100.  
  101.    The values of the table mapping are defined by use of two new object
  102.    classes, as specified in Figure 1.  The objects give pointers to the
  103.    mapped components.
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114. Kille                         Experimental                      [Page 2]
  115.  
  116. RFC 1838             RFC 822/X.400 Mapping by X.500          August 1995
  117.  
  118.  
  119. 2.  Omitted Components
  120.  
  121.    In RFC 1327, it is possible to have omitted components in O/R
  122.    Addresses on either side of the mapping.  A mechanism to represent
  123.    such omitted components is defined in Figure 2.
  124.  
  125.    The attribute at-or-address-component-type is set to the X.500
  126.    attribute type associated with the omitted component (e.g., at-prmd-
  127.    name).  This mechanism is for use only within the X.400 to RFC 822
  128.    subtree and for the at-associated-or-address attribute.
  129.  
  130. -----------------------------------------------------------------------
  131. rFC822ToX400Mapping OBJECT-CLASS ::= {
  132.     SUBCLASS OF {domain-component}
  133.     MAY CONTAIN {
  134.         associatedORAddress|
  135.         associatedX400Gateway}
  136.     ID oc-rfc822-to-x400-mapping}
  137.  
  138. x400ToRFC822Mapping OBJECT-CLASS ::= {
  139.     SUBCLASS OF {top}
  140.     MAY CONTAIN {                                                   10
  141.         associatedDomain}
  142.     ID oc-x400-to-rfc822-mapping}
  143.  
  144.  
  145. associatedORAddress ATTRIBUTE ::= {
  146.     SUBTYPE OF distinguishedName
  147.     SINGLE VALUE
  148.     ID at-associated-or-address}
  149.  
  150.                                                                     20
  151. associatedX400Gateway ATTRIBUTE ::= {
  152.     SUBTYPE OF mhs-or-addresses
  153.     MULTI VALUE
  154.     ID at-associated-x400-gateway}
  155.  
  156. associatedDomain ATTRIBUTE ::= {
  157.     SUBTYPE OF name
  158.     WITH SYNTAX caseIgnoreIA5String
  159.     SINGLE VALUE
  160.     ID at-associated-domain}                                        30
  161.  
  162.  
  163.              Figure 1:  ObjectClasses for RFC 1327 mappings
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Kille                         Experimental                      [Page 3]
  171.  
  172. RFC 1838             RFC 822/X.400 Mapping by X.500          August 1995
  173.  
  174.  
  175. -----------------------------------------------------------------------
  176. omittedORAddressComponent OBJECT-CLASS ::=
  177.         SUBCLASS OF {top}
  178.         MUST Contain {
  179.                 oRAddressComponentType
  180.         }
  181.         ID oc-omitted-or-address-component}
  182.  
  183.  
  184. oRAddressComponentType ATTRIBUTE ::= {
  185.         SUBTYPE OF  objectIdentifier                                10
  186.         SINGLE VALUE
  187.         ID at-or-address-component-type}
  188.  
  189.                 Figure 2:  Omitted O/R Address Component
  190.  
  191. 3.  Mapping from X.400 to RFC 822
  192.  
  193.    As an example, consider the mapping from the O/R Address:
  194.  
  195.    P=UK.AC; A=Gold 400; C=GB
  196.  
  197.    This would be keyed by the directory entry:
  198.  
  199.    PRMD=UK.AC, ADMD=Gold 400, C=GB, CN=X.400 to RFC 822,
  200.    OU=X.400/RFC 822 Mapping,  O=Internet
  201.  
  202.    and return the mapping from the associatedDomain attribute, which
  203.    gives the domain which this O/R address maps to.  This attribute is
  204.    used to define authoritative mappings, which are placed in the open
  205.    community tree.  The manager of an RFC 1327 mapping shall make the
  206.    appropriate entry.
  207.  
  208.    Functionally, mapping takes place exactly according to RFC 1327.  The
  209.    longest match is found by the following algorithm.
  210.  
  211.    1.  Take the O/R Address, and derive a directory name.  This will be
  212.        the O/R Address as far as the lowest OU.
  213.  
  214.    2.  Look up the entire name derived from the RFC 1327 key in the in
  215.        the X.400 to RFC 822 subtree.  This lookup will either succeed,
  216.        or it will fail and indicate the longest possible match, which
  217.        can then be looked up.
  218.  
  219.    3.  Check for an associatedDomain attribute in the matched entry.
  220.  
  221.  
  222.  
  223.  
  224.  
  225.  
  226. Kille                         Experimental                      [Page 4]
  227.  
  228. RFC 1838             RFC 822/X.400 Mapping by X.500          August 1995
  229.  
  230.  
  231.    The mapping can always be achieved with two lookups.
  232.  
  233.    Because of the availability of aliases, some of the table mappings
  234.    may be simplified.  In addition, the directory can support mapping
  235.    from addresses using the numeric country codes.
  236.  
  237. 4.  Mapping from RFC 822 to X.400
  238.  
  239.    There is an analogous structure for mappings in the reverse
  240.    direction.  The domain hierarchy is represented in the DIT according
  241.    to RFC 1279.  The domain:
  242.  
  243.    AC.UK
  244.  
  245.    Is represented in the DIT as:
  246.  
  247.    DomainComponent=AC, DomainComponent=UK,  CN=RFC 822 to X.400,
  248.    OU=X.400/RFC 822 Mapping,  O=Internet
  249.  
  250.    This has associated with it the attribute associatedORAddress encoded
  251.    as a distinguished name with a value:
  252.  
  253.    PRMD=UK.AC, ADMD=Gold 400, C=GB
  254.  
  255.    The "table 3" mapping defined in RFC 1327 [2] is provided by the
  256.    associatedX400Gateway attribute.  This value may identify multiple
  257.    possible associated gateways.  This information is looked up at the
  258.    same time as mapped O/R addresses.  In effect, this provides a
  259.    fallback mapping, which is found if there is no equivalence mapping.
  260.    Because of the nature of the mapping a domain will map to either a
  261.    gateway or a domain, but not both.  Thus, there shall never be both
  262.    an associatedX400Gateway and associatedORAddress attribute present in
  263.    the same entry.  Functionally, mapping takes place exactly according
  264.    to RFC 1327.  The longest match is found by the following algorithm.
  265.  
  266.    1.  Derive a directory name from the domain part of the RFC 822
  267.        address.
  268.  
  269.    2.  Look up this name in the RFC 822 to X.400 subtree to find the
  270.        mapped value (either associatedORAddress or
  271.        associatedX400Gateway.).  If the lookup fails, the error will
  272.        indicate the longest match, which can then be looked up.
  273.  
  274.    If associatedORAddress is found, this will define the mapped O/R
  275.    Address.  The mapping can always be achieved with two lookups.  If an
  276.    associatedX400Gateway is present, the address in question will be
  277.    encoded as a domain defined attribute, relative to the O/R Address
  278.    defined by this attribute.  If multiple associatedX400Gateway
  279.  
  280.  
  281.  
  282. Kille                         Experimental                      [Page 5]
  283.  
  284. RFC 1838             RFC 822/X.400 Mapping by X.500          August 1995
  285.  
  286.  
  287.    attributes are found, the MTA may select the one it chooses to use.
  288.  
  289.    Because of the availability of aliases, some of the table mappings
  290.    may be simplified.  In addition, the directory can support mapping
  291.    from addresses using the numeric country codes.
  292.  
  293. 5.  Acknowledgements
  294.  
  295.    Acknowledgements for work on this document are given in [3].
  296.  
  297. References
  298.  
  299.    [1] Kille, S. "X.500 and Domains", RFC 1279,
  300.        Department of Computer Science, University College London,
  301.        November 1991.
  302.  
  303.    [2] Kille, S., "Mapping between X.400(1988)/ISO 10021 and RFC 822",
  304.        RFC 1327, Department of Computer Science, University College
  305.        London, May 1992.
  306.  
  307.    [3] Kille, S., "MHS Use of the X.500 Directory to Support MHS
  308.        Routing", RFC 1801, ISODE Consortium, June 1995.
  309.  
  310.    [4] Kille, S., "Representing Tables and Subtrees in the X.500
  311.        Directory", RFC 1837, ISODE Consortium, August 1995.
  312.  
  313.    [5] Kille, S., "Representing the O/R Address Hierarchy in the X.500
  314.        Directory Information Tree", RFC 1836, ISODE Consortium, August
  315.        1995.
  316.  
  317. 6.  Security Considerations
  318.  
  319.    Security issues are not discussed in this memo.
  320.  
  321.  
  322.  
  323.  
  324.  
  325.  
  326.  
  327.  
  328.  
  329.  
  330.  
  331.  
  332.  
  333.  
  334.  
  335.  
  336.  
  337.  
  338. Kille                         Experimental                      [Page 6]
  339.  
  340. RFC 1838             RFC 822/X.400 Mapping by X.500          August 1995
  341.  
  342.  
  343. 7.  Author's Address
  344.  
  345.    Steve Kille
  346.    ISODE Consortium
  347.    The Dome
  348.    The Square
  349.    Richmond
  350.    TW9 1DT
  351.    England
  352.  
  353.    Phone:  +44-81-332-9091
  354.    Internet EMail:  S.Kille@ISODE.COM
  355.  
  356.    X.400:  I=S; S=Kille; O=ISODE Consortium; P=ISODE;
  357.    A=Mailnet; C=FI;
  358.  
  359.    UFN: S. Kille, ISODE Consortium, GB
  360.  
  361.  
  362.  
  363.  
  364.  
  365.  
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373.  
  374.  
  375.  
  376.  
  377.  
  378.  
  379.  
  380.  
  381.  
  382.  
  383.  
  384.  
  385.  
  386.  
  387.  
  388.  
  389.  
  390.  
  391.  
  392.  
  393.  
  394. Kille                         Experimental                      [Page 7]
  395.  
  396. RFC 1838             RFC 822/X.400 Mapping by X.500          August 1995
  397.  
  398.  
  399. A  Object Identifier Assignment
  400.  
  401. -----------------------------------------------------------------------
  402. mhs-ds OBJECT IDENTIFIER ::= {iso(1) org(3) dod(6) internet(1)
  403.           private(4) enterprises(1) isode-consortium (453) mhs-ds (7)}
  404.  
  405. mapping OBJECT IDENTIFIER ::= {mhs-ds 4}
  406.  
  407. oc OBJECT IDENTIFIER ::= {mapping 1}
  408. at OBJECT IDENTIFIER ::= {mapping 2}
  409.  
  410.  
  411. oc-rfc822-to-x400-mapping OBJECT IDENTIFIER ::= {oc 1}              10
  412. oc-x400-to-rfc822-mapping OBJECT IDENTIFIER ::= {oc 2}
  413. oc-omitted-or-address-component OBJECT IDENTIFIER ::= {oc 3}
  414.  
  415. at-associated-or-address OBJECT IDENTIFIER ::= {at 6}
  416. at-associated-x400-gateway OBJECT IDENTIFIER ::= {at 3}
  417. at-associated-domain OBJECT IDENTIFIER ::= {at 4}
  418. at-or-address-component-type OBJECT IDENTIFIER ::= {at 7}
  419.  
  420. Figure 3:  Object Identifier Assignment
  421.  
  422.  
  423.  
  424.  
  425.  
  426.  
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434.  
  435.  
  436.  
  437.  
  438.  
  439.  
  440.  
  441.  
  442.  
  443.  
  444.  
  445.  
  446.  
  447.  
  448.  
  449.  
  450. Kille                         Experimental                      [Page 8]
  451.  
  452.